TiledObject

A simple object which can mean absolutely anything inside a TileLayer. Usually used for implementing: - Camera Dead Zones - Event Systems - Trigger Areas

When wanting to get its following type, call either rect, ellipse, tile, point, line, triangle, polygon or text. Try to avoid calling text multiple times since it involves 3 associative array accesses.

Members

Functions

ellipse
TiledRectangle ellipse()
Undocumented in source. Be warned that the author may not have intended to support it.
line
int[4] line()
Undocumented in source. Be warned that the author may not have intended to support it.
point
int[2] point()
Undocumented in source. Be warned that the author may not have intended to support it.
polygon
int[2][] polygon()
Undocumented in source. Be warned that the author may not have intended to support it.
rect
TiledRectangle rect()
Undocumented in source. Be warned that the author may not have intended to support it.
text
const(TiledText) text()
Undocumented in source. Be warned that the author may not have intended to support it.
tile
TiledRectangle tile()
Undocumented in source. Be warned that the author may not have intended to support it.
triangle
int[2][3] triangle()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

data
TiledObjectUnion data;
Undocumented in source.
dataType
TiledObjectTypes dataType;
Undocumented in source.
id
ushort id;
Undocumented in source.
name
string name;
Undocumented in source.
properties
TileProperty[string] properties;
Undocumented in source.
type
string type;
Undocumented in source.
visible
bool visible;
Undocumented in source.

Meta